<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="mainBody" style="overflow: auto;">
    <div class="editBody">
        <?php echo form_open('db_admin/add'); ?>
        <div class="bodyTitle" style="">
            <div class="titleIcon addTitle"></div>
            <p class="titleName fontDinproMedium" style="">db add</p>
        </div>
        <div class="bodyDiv fontDinpro">
            <div class="divContent">
                <p class="fontDinproMedium">database Name:</p>
                <div class="rightContent">
                    <input type="text" class="input-text fontDinpro" id="db_name" name="db_name" />
		    <p class="waring fontDinpro">*eg:k9pf*</p>
                </div>
            </div>
        </div>
        <div class="bodyDiv fontDinpro">
            <div class="divContent">
                <p class="fontDinproMedium">db_flag</p>
                <div class="rightContent">
                    <input type="text" class="input-text fontDinpro" id="db_flag" name="db_flag" />
                    <p class="waring fontDinpro">*0:不增加配置(ope);1:增加配置*</p>
                </div>
                <?php if(form_error('db_flag')!=''){ ?>
                    <label class="waring fontDinpro noFloat snapRight autoWidth"><?php echo form_error('db_flag'); ?></label>
                <?php } ?>
            </div>
        </div>
        <button class="btn submitBtn fontDinproBold" href="javascript:void(0)" type='submit'>SUMBIT</button>
        <?php echo form_close(); ?>
    </div>
	<div class="tableContent">
		<table class="fontDinpro">
		    <thead>
		    <tr>
			<th style="width: 120px;">db_id</th>
			<th style="width: 120px;">db_name</th>
			<th style="width: 120px;">add_flag</th>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
			<th style="width: 120px;">db_id</th>
			<th style="width: 120px;">db_name</th>
			<th style="width: 120px;">add_flag</th>
		    </tr>
		    <?php foreach($list as $k => $v) : ?>
			<tr class="lowTr">
			    <td><?php echo $v['id']; ?></td>
			    <td><?php echo $v['db_name']; ?></td>
			    <td><?php echo $v['db_flag']; ?></td>
			</tr>
		    <?php endforeach; ?>
		    <tr style="height: 33px;"></tr>
		    </tbody>
		</table>
	</div>

</div>



